package com.zh.agent.app;

import java.util.Scanner;

public class App {


    public void sayHello(){
        System.out.println("App hello");
    }

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        App app = new App();
        Hello hello = new Hello();
        while(true){
            String s = scanner.nextLine();
            System.out.println(">>> " + s.trim());
            if(s.trim().equals("q")){
                System.out.println("System exit");
                scanner.close();
                System.exit(0);
            }
            app.sayHello();
            hello.sayHello();
            
            new Hello().sayHello();
        }
    }
}
